package com.itcam.test;

import com.itcam.service.Calculator;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * Author:Cammy.Wu
 * Date:2024-04-25
 * Description:xml配置aop测试
 */


@SpringJUnitConfig(locations = "classpath:spring_xml.xml")
public class SpringAopTest_xml {

    @Autowired
    private Calculator calculator;


    @Test
    public void test_01() {
        int add = calculator.add(5, 7);
        System.out.println("add = " + add);

    }
}
